﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Library.Bll;
using Library.Common;

namespace HanhuaMicroCredit.BLL
{
    public static class sysManageBLL
    {
        /// <summary>
        /// 总公司列表
        /// </summary>
        /// <returns></returns>
        public static List<Dictionary<string, object>> get_zCompany()
        {
            string conditions = " IsValid= 1 and ParentId=0 and tree=0 ";
            return CommonBLL.GetList("Sys_Company", "id as id,CompanyName as name", " id asc ", conditions);
        }
        /// <summary>
        /// 分公司列表
        /// </summary>
        /// <returns></returns>
        public static List<Dictionary<string, object>> get_fCompany()
        {
            string conditions = " IsValid= 1  and tree=1 ";
            return CommonBLL.GetList("Sys_Company", "id as id,CompanyName as name", " id asc ", conditions);
        }
        
    }
}
